package a_extends;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package PACKAGE_NAME
 * @date 2024/3/26 18:33
 */
public class Test01 {
    public static void main(String[] args) {
        teacher teacher1=new teacher();
        teacher1.age="Marry";
        System.out.println(teacher1.age);
        teacher1.Work();
       // teacher1.Eat();子类不能访问父类的私有方法

    }
}
